package com.loeng.module.infra.controller.admin.file.vo.file;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 文件 Response VO")
@Data
@ExcelIgnoreUnannotated
public class FileRespVO {

    @Schema(description = "文件编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8227")
    @ExcelProperty("文件编号")
    private Long id;

    @Schema(description = "配置编号", example = "10789")
    @ExcelProperty("配置编号")
    private Long configId;

    @Schema(description = "文件名", example = "张三")
    @ExcelProperty("文件名")
    private String name;

    @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("文件路径")
    private String path;

    @Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("文件 URL")
    private String url;

    @Schema(description = "文件类型", example = "1")
    @ExcelProperty("文件类型")
    private String type;

    @Schema(description = "文件大小", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("文件大小")
    private Integer size;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}